<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>上善平台管理</title>
  <link href="resources/plugins/bootstrap/css/bootstrap.css"/>
  <link href="resources/plugins/bootstrap/css/bootstrap.min.css"/>
  <link href="resources/plugins/bootstrap/css/bootstrap-theme.css"/>
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/main1.css"/>"/>
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap-responsive.min.css"/>">
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.css"/>"/>
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/global.css"/>">
  <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
  <script src="<c:url value="/resources/js/jquery.js"/>" type="text/javascript"></script>
  <script src="<c:url value="/resources/js/bootstrap.min.js"/>"></script>
</head>
<body onResize="Resize()" onLoad="Resize()">
<jsp:include page="/WEB-INF/views/platform/navigator.jsp"></jsp:include>
<div class="container well teacher">
  <div class="row">
    <h1 class="teacher col-lg-12">新添行为数据</h1>
  </div>
  <hr />
  <form class="form-horizontal" id="form-newAssignment" role="form" method="post">
    <div class="form-group form-group-lg">
      <label class="control-label col-lg-2 col-md-3 col-sm-3"><small>(必填) </small>所在模块</label>
      <div class="col-lg-3 col-md-3 col-sm-4">
        <select class="form-control" name="section">
          <%--<c:forEach items="${studyAreas }" var="studyArea">--%>

            <c:if test="${section  eq '0'}">
              <option value="${section}">占星</option>
            </c:if>
            <c:if test="${section  eq '1'}">
              <option value="${section}">悬赏</option>
            </c:if>
            <c:if test="${section  eq '2'}">
              <option value="${section}">发现</option>
            </c:if>
            <c:if test="${section  eq '3'}">
              <option value="${section}">秘宝</option>
            </c:if>

          <option value="0">占星</option>
          <option value="1">悬赏</option>
          <option value="2">发现</option>
          <option value="3">秘宝</option>
          <%--</c:forEach>--%>
        </select>
      </div>
      <%--<div class="col-lg-3 col-md-3 col-sm-4">
          <input class="form-control" name="newStudyArea" value="" placeholder="如没有请填在此处">
      </div>--%>
    </div>
    <div class="form-group">
      <label class="control-label col-lg-2 col-md-3"><small>(必填) </small>行为特点</label>
      <div class="col-lg-9 col-md-8">
        <input class="form-control" name="feature"  placeholder="请输入行为特点" value="${actionData.feature}" required/>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-lg-2 col-md-3"><small>(必填) </small>行为描述</label>
      <div class="col-lg-9 col-md-8">
        <textarea class="form-control" name="description" rows="7" placeholder="请输入行为描述" required>${actionData.description}</textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-lg-2 col-md-3"><small>(必填) </small>行为条件</label>
      <div class="col-lg-9 col-md-8">
        <input class="form-control" name="require"  placeholder="请输入行为条件" value="${actionData.require}" required/>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-lg-2 col-md-3"><small>(必填) </small>影响属性及影响程度</label>
      <div class="col-lg-3 col-md-3 col-sm-4">                <%--<input class="form-control" name="effect"  placeholder="请输入题目介绍" value="${wordData.effect}" required/>--%>
        <c:forEach items="${datas}" var="data">
          <span>${data} : </span>
          <select class="form-control" name="effect">
            <option value="null"></option>
            <option value="${data}:-3">-3</option>
            <option value="${data}:-2">-2</option>
            <option value="${data}:-1">-1</option>
            <option value="${data}:+1">+1</option>
            <option value="${data}:+2">+2</option>
            <option value="${data}:+3">+3</option>
          </select>
        </c:forEach>
      </div>
    </div>
    <div>
      <div class="col-lg-6 col-md-5">
        <button type="submit" class="btn btn-lg btn-primary btn-submit">
          <span class="glyphicon glyphicon-export"></span>
          确认</button>
      </div>
    </div>
    <!--6th .form-group form-group-lg ends here-->
  </form>
</div>

<!--The footer needs to be put here-->

<script src="${ctx}/resources/js/jquery 1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="${ctx}/resources/js/bootstrap.js"></script>
<script src="${ctx}/resources/js/gobal.js"></script>
</body>
</html>
